package wekan.client;

import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.util.Log;

public class WLocationListener implements LocationListener
{

    private WModel model;

    public WLocationListener(WModel mod){
        Log.d(WModel.TAG, "GPS LISTENER STARTING ...") ;
        model = mod;
    }


    @Override
    public void onLocationChanged(Location loc)
    {
        model.setCurrentLocation(loc);
    }

    @Override
    public void onProviderDisabled(String provider)
    {
    }

    @Override
    public void onProviderEnabled(String provider)
    {
    }

    @Override
    public void onStatusChanged(String provider, int status, Bundle extras)
    {

    }

}
